package com.yys.gulimall.ware.constant;

/**
 * @author zq
 * @version 1.0
 * @date 2021/4/6 10:56
 */
public class WareConstant {

    public static final String STOCK_DELAY_QUEUE = "stock.delay.queue";
    public static final String STOCK_RELEASE_QUEUE = "stock.release.stock.queue";

    public static final String STOCK_EVENT_EXCHANGE = "stock-event-exchange";

    public static final String STOCK_LOCKED_ROUTING_KEY = "stock.locked";
    public static final String STOCK_RELEASE_ROUTING_KEY = "stock.release";

    public static final String STOCK_RELEASE_BINDING_ROUTING_KEY = "stock.release.#";

    // 库存 1 小时候解锁
    public static final int ORDER_TTL = 60 * 60000;


    /**
     * 1锁定 ; 2解锁 ; 3扣减
     */
    public static final int WARE_TASK_DETAIL_LOCK_STATUS_LOCK = 1;
    public static final int WARE_TASK_DETAIL_LOCK_STATUS_UNLOCK = 2;
    public static final int WARE_TASK_DETAIL_LOCK_STATUS_TACKOUT = 3;



}
